Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add BesTV R3300L support and data #993

Merged
merged 1 commit into from
Feb 2, 2023
Merged

Add BesTV R3300L support and data #993

merged 1 commit into from
Feb 2, 2023

Conversation

7Ji
Copy link
Contributor

@7Ji 7Ji commented Feb 2, 2023

BesTV R3300L is a ISP custom-made setup box that's powered by Amlogic S905L-B, it was once popular in ~2020 in the blooming of custom s9xxx firmwares and my introduction to Amlogic tinkering.

This adds its dedicated u-boot(BL33) and bootloader image, built from v2023.01, source codes available in my u-boot repo, with noticable difference from generic s905x-p212 u-boot:

  1. The boot order is USB0 > MMC0 (SD) > MMC1 (EMMC) > PXE > DHCP.
    • The MMC2 is not in the boot order since on this device it's defined to be used as SDIO to connect to Wireless chip.
    • The Network bootings are placed at the latest as those are least frequently used and all they do are wasting the booting time
  2. The u-boot bootloader image that'll be written to eMMC will store env at 0xf0000 offset on MMC1 size 0x10000, ending at 0x100000 (1MiB), before any definable MBR partitions
    • this means the user can use fw_printenv and fw_setenv to handle u-boot envs from within the system with a fw_env.config containing the following line
      /dev/mmcblk2 0xf0000 0x10000
      

The u-boot & bootloader images support latest kernel as of now nicely


百视通R3300L是一台由晶晨S905L-B驱动的运营商订制机顶盒,在2020年左右各种s9xxx第三方固件萌芽蓬勃发展的时候曾经很流行,也是我的第一个把我引向晶晨平台折腾的盒子

这个PR增加专用的u-boot(BL33)和引导程序镜像,自主线v2023.01构建,源码可在我的u-boot仓库 获取,和通用的s905x-p212 u-boot有明显的区别是:

  1. 引导顺序是USB0 > MMC0 (SD) > MMC1 (EMMC) > PXE > DHCP
    • MMC2没有写入引导顺序,因为它在R3300L上被用来作为SDIO连接无线网卡
    • 网络引导被放在最后,因为很少用到,多数时候就是单纯浪费启动时间
  2. 用来写到eMMC上的引导程序镜像会把环境存储在MMC1的0xf0000偏移,大小0x10000,在0x100000 (1MiB)结束,也就是在任何可定义的MBR分区之前
    • 也就是说,用户可以用fw_printenvfw_setenv在系统里面通过有下面这行配置的fw_env.config来直接编辑u-boot环境
      /dev/mmcblk2 0xf0000 0x10000
      

u-boot和引导程序镜像均完美支持目前的最新内核

额外资源:

https://github.com/7Ji/u-boot/releases/tag/v2023.01-r3300l 中的bare-minimum.img,是利用ampart将无用分区全部阉割掉的线刷包,只有2.4M,线刷速度极快。可以用来将砖掉的盒子恢复到能启动到u-boot的状态,然后因为无安卓会自动加载外置系统,可以当作不需要安卓情况下的救砖包。

https://github.com/7Ji/HybridELEC/tree/android-burning#bestv-r3300l 中提供了将CE和EE直接打入的线刷包,可以配合将盒子做成四启动。

可以短接以屏蔽eMMC,强制进入线刷模式的触点。也可以使用HDMI短接器
r3300l-short-emmc

BesTV R3300L is a ISP custom-made setup box that's powered by Amlogic
S905L-B, it was once popular in ~2020 in the blooming of custom s9xxx
firmwares and my introduction to Amlogic tinkering.

This adds its dedicated u-boot(BL33) and bootloader image, built from
v2023.01, with noticable difference from generic s905x-p212 u-boot:
1. The boot order is USB0 > MMC0 (SD) > MMC1 (EMMC) > PXE > DHCP
   The MMC2 is not in the boot order since on this device it's defined
   to be used as SDIO to connect to Wireless chip.
   The Network bootings are placed at the latest as those are least
   frequently used and all they do are wasting the booting time
2. The u-boot bootloader image will store env at 0xf0000 offset on MMC1
   size 0x10000, ending at 0x100000 (1MiB), before any definable MBR
   partitions, this means the user can use fw_printenv and fw_setenv
   to handle u-boot envs from within the system with a fw_env.config
   containing the following line
   `/dev/mmcblk2 0xf0000 0x10000`

The u-boot & bootloader images support latest kernel (6.1.8 as of now)
nicely
@ophub ophub merged commit 6e698b1 into ophub:main Feb 2, 2023
@ophub
Copy link
Owner

ophub commented Feb 2, 2023

7Ji仓库里的宝贝挺多的,推荐大家多去学习,能深入了解系统启动/运行的机制,是不可多得的资料,中英文对译,不仅深入浅出地剖析了理论,还工具化了,开箱即用,我上午又去温习了一遍,每次看都能有新的收获。

@ophub
Copy link
Owner

ophub commented Feb 2, 2023

https://github.com/ophub/amlogic-s9xxx-armbian/releases

你下载名字中带s905l-b-r3300l的系统,试试这个打包的BesTV R3300L能否正常启动使用。

@7Ji
Copy link
Contributor Author

7Ji commented Feb 2, 2023

直接使用镜像,不做修改的前提下,均不能启动。因为处于优先顺位的脚本boot.scr里的loadaddr硬定义为了0x44000000,为1088M,在合法内存外。
但是重命名/extlinux/extlinux.conf.bak/extlinux/extlinux.conf后 (sysboot使用的配置,优先于boot.scr启动脚本),或者修改boot.scr后,即可启动
我自己用这个u-boot的时候是手写的sysboot配置,在预料之中sysboot能正常启动

@ophub
Copy link
Owner

ophub commented Feb 2, 2023

重命名/extlinux/extlinux.conf.bak为/extlinux/extlinux.conf 后,就可以USB启动?
写入emmc时也添加这个文件就可以了吧?

5.4/5.10/5.15/6.1内核都支持?

@7Ji
Copy link
Contributor Author

7Ji commented Feb 2, 2023

写入emmc时也添加这个文件就可以了吧?

在写入emmc的时候extlinux.conf是会自动复制的,不需要额外的“添加”。

5.4/5.10/5.15/6.1内核都支持?

  • 6.1.9 OK
  • 5.15.91 OK
  • 5.10.166 OK
  • 5.4.230 OK

@ophub
Copy link
Owner

ophub commented Feb 2, 2023

d22cd78

我添加了一个默认需要使用extlinux.conf文件的处理方法,以后这些设备直接打包时就会自动添加好extlinux.conf文件。

ophub added a commit that referenced this pull request Feb 23, 2023
Add BesTV R3300L support and data
ophub added a commit that referenced this pull request Mar 1, 2023
Add BesTV R3300L support and data
@nokia5320
Copy link

运行armbian 8g太小了,我自己更换了emmc 32g的,可以直接用你的吗?

@7Ji 7Ji deleted the r3300l branch March 4, 2023 16:18
@Cp0204

This comment was marked as off-topic.

ophub added a commit that referenced this pull request Mar 21, 2023
Add BesTV R3300L support and data
@Jio0oiJ
Copy link

Jio0oiJ commented Mar 22, 2023

R3300L 的 wifi 有没有可能修复,用到现在只有一个3.14内核的wifi是正常的。
5.15的WiFi能扫描出来,但是连接就直接报错

@ophub
Copy link
Owner

ophub commented Mar 22, 2023

更新今天的内核,修复了wifi能看不能连的问题。

@Jio0oiJ
Copy link

Jio0oiJ commented Mar 29, 2023

更新今天的内核,修复了wifi能看不能连的问题。

[]( ̄▽ ̄)*

@Jio0oiJ
Copy link

Jio0oiJ commented Mar 30, 2023

更新今天的内核,修复了wifi能看不能连的问题。

Armbian_23.05.0_amlogic_s905lb-r3300l_bullseye_5.15.104_server_2023.03.29.img.gz
重新刷了这个版本的,wifi还是能看不能连

image

ophub added a commit that referenced this pull request Mar 31, 2023
Add BesTV R3300L support and data
@Jio0oiJ
Copy link

Jio0oiJ commented Apr 3, 2023

更新今天的内核,修复了wifi能看不能连的问题。

Armbian_23.05.0_amlogic_s905lb-r3300l_bullseye_5.15.104_server_2023.03.29.img.gz 重新刷了这个版本的,wifi还是能看不能连

image

Armbian_23.05.0_amlogic_s905lb-r3300l_bullseye_5.15.105_server_2023.04.02.img.gz
可以工作了

@bi9bi9bee
Copy link

bi9bi9bee commented Apr 6, 2023

@ophub @7Ji 大佬,用了4月5号的r3300l固件openwrt_official_amlogic_s905lb-r3300l_k6.1.22_2023.04.05.img.gz,用晶晨宝盒选择设备【118】写入emmc,均不能从emmc启动。是什么原因呢?

ophub added a commit that referenced this pull request Jul 27, 2023
Add BesTV R3300L support and data
@mate60
Copy link

mate60 commented Aug 10, 2023

Armbian_23.08.0_amlogic_s905lb-r3300l_bullseye_6.1.42_server_2023.08.01.img

armbian::# nmcli device wifi connect LOX password ....1111
Error: No Wi-Fi device found.
armbian:
:#

ophub added a commit that referenced this pull request Aug 20, 2023
Add BesTV R3300L support and data
@GinRyan
Copy link

GinRyan commented Nov 29, 2023

有几个问题想要了解一下:
1、R3300M可以使用R3300L的镜像吗?
2、我不想刷到emmc上,那么如何刷到TF卡上替代LibreElec开机启动到OpenWRT呢?

@wuerone
Copy link

wuerone commented Dec 3, 2023

12月1日的6个r3300l镜像通过晶晨宝盒写入emmc,均不能启动,用u盘引导盒子,想通过命令行写入emmc,却总循环提示按回车键激活。r3300l的两个硬件版本(黑主板细体字和绿主板粗体字)都是如此。

@wuerone
Copy link

wuerone commented Dec 3, 2023

晶晨宝盒写入时选的设备是128。

@wuerone
Copy link

wuerone commented Dec 3, 2023

刚又试了下,插上引导u盘仍可以启动。

ophub added a commit that referenced this pull request Dec 6, 2023
Add BesTV R3300L support and data
@ophub
Copy link
Owner

ophub commented Mar 1, 2024

@bi9bi9bee
Copy link

大佬,之前有个固件,r3300l的内存有924M能用,这里的固件只能有788mb,这是为啥?
图片
图片

@ophub
Copy link
Owner

ophub commented Apr 9, 2024

你可以试试复制个/boot/u-boot重启测试

@bi9bi9bee
Copy link

图片
图片
图片
大佬,没有同名的文件,不明白是怎么替换的

@ophub
Copy link
Owner

ophub commented Apr 9, 2024

第一个图片,在你5.9.0里:

cd /boot
sha256sum u-boot*

看看u-boot.emmc这个文件和另外2个哪个的值是一样的。
或者你直接把5.9.0这个u-boot.emmc下载下来,放到5.15.153里,重启试试。

@winic57
Copy link

winic57 commented Apr 11, 2024

openwrt_lede_amlogic_s905lb-r3300l_k6.1.84_2024.04.08.img写入EMMC无法启动,目前哪个镜像是可以EMMC启动,请用过的告知一下,谢谢

@bi9bi9bee
Copy link

bi9bi9bee commented Apr 11, 2024

第一个图片,在你5.9.0里:

cd /boot
sha256sum u-boot*

看看u-boot.emmc这个文件和另外2个哪个的值是一样的。 或者你直接把5.9.0这个u-boot.emmc下载下来,放到5.15.153里,重启试试。

图片
能启动,有变化,但5.9是924M,5.153是912M,献上文件
u-boot.zip
还有个问题,就是HDMI输出的屏幕会一直有报错,但是wifi功能是正常的,但是SSH连接就不会显示这个报错
229efd6431a09a4e94d414c54459230

@ophub
Copy link
Owner

ophub commented Apr 12, 2024

/boot/u-boot-r3300l.bin 你把这个文件复制成u-boot.emmc试试:

cd /boot
cp -f u-boot-r3300l.bin u-boot.emmc
sync
reboot

@bi9bi9bee
Copy link

/boot/u-boot-r3300l.bin 你把这个文件复制成u-boot.emmc试试:

cd /boot
cp -f u-boot-r3300l.bin u-boot.emmc
sync
reboot

图片
这样操作了可以用,内存变成920M,但是HDMI输出报错还是没有解决,但报错内容好像有点不同
44a32e08acd80fb2049bfe6b1e32981

@ophub
Copy link
Owner

ophub commented Apr 12, 2024

无线禁用了,或者链接wifi

@bi9bi9bee
Copy link

无线禁用了,或者链接wifi

什么意思?我已经连接了wifi,并且wifi也是正常使用的

@ophub
Copy link
Owner

ophub commented Apr 12, 2024

那忽视吧

@winic57
Copy link

winic57 commented Apr 14, 2024

无线禁用了,或者链接wifi

什么意思?我已经连接了wifi,并且wifi也是正常使用的

麻烦问一下153如何写入emmc

@winic57
Copy link

winic57 commented Apr 14, 2024

试试124和127,能写入emmc启动
你好,是指的5.15.124这个版本吗?我编译了一个,好像还是不行
5a0129d1532175b5c8a3347953f4f15

ophub added a commit that referenced this pull request Apr 25, 2024
Add BesTV R3300L support and data
@precise-calvin
Copy link

Armbian_23.05.0_amlogic_s905lb-r3300l_bullseye_5.15.105_server_2023.04.02.img.gz 请教这个版本得镜像哪里还能下载到,一直用5.7.0内核,启动太慢,有时网口识别不到,刚发现这个也带无线,大佬能发给我,谢谢 [email protected] 有偿红包感谢

大哥,这版固件你找到了么,求分享

@bird202301
Copy link

bird202301 commented Apr 29, 2024 via email

@precise-calvin
Copy link

precise-calvin commented Apr 29, 2024 via email

@bird202301
Copy link

bird202301 commented Apr 30, 2024 via email

@bird202301
Copy link

bird202301 commented Apr 30, 2024 via email

@bird202301
Copy link

终于上来了,能访问github了,最近看到很多网友反映r3300L 的机器无法写入emmc,我有个假设,是不是最初大侠们的机器和我手里的有区别呢?以我为例 我的r3300L主板是绿色的,cpu是905L 不是905L-B,看大侠展示的主板是联通制造,电路板黑色,而我的是中国移动版,电路板绿色的,cpu是905L,这种无法写入emmc。
以上内容只是假设,提供个思路,请见谅。

@precise-calvin
Copy link

precise-calvin commented May 9, 2024 via email

@Hx0531
Copy link

Hx0531 commented Aug 8, 2024

o大,浪潮ipbs9505这款盒子,可以添加进s905lb列表里了,我下面的描述移里面。

arm镜像:Armbian_24.8.0_amlogic_s905lb-r3300l_jammy_6.1.100_server_2024.07.25.img

默认dtb 130选项。

安卓6.0root底包!

我在文章底部会留下,用到所有东西的打包文件地址链接。

首先介绍一下这个盒子,
IMG_20240809_050426.jpg

IMG_20240809_050404.jpg

IMG_20240809_050436.jpg

下面咱们拆开看看!
机身没有螺丝,找个金碧辉煌洗脚城的会员金卡,切缝划开,主板上有四个螺丝还不一样大,哈哈 ,注意哈,取出主板的时候别把无线别断,当然断了也无所谓,也用不上IMG_20240809_050625.jpg
IMG_20240809_050749.jpg

IMG_20240809_051105.jpg

自己放大看细节,以前买的微距夹镜头也是用上了!

来个芯片特写!IMG_20240809_051137.jpg
再来张全景IMG_20240809_051212.jpg

不管怎么说,正着说反着说,这盒子总归时间久点了,两颗512ddr3内存,两颗也就说1G.....emmc闪存4g 非常豪华!

不过该咋玩咋玩啊,对吧!别扯了 赶紧装回!

开始入题:

1.准备刷机工具(usb双公头线,短接神器)
2.刷机工具 usb_burning_tool_v2.1.6.8还有开心电视助手。还有mobaxterm还有balenaetcher.
3.安卓6.0root底包,和armbian镜像。
以上2和3我会最后打包留下下载链接。

首先,刷底包默认双勾选,开刷。如果报错,别慌,停止然后刷新,然后第一个勾里选擦出所有,好,刷入成功。主要这几步,没拍照,自己脑补。

然后烧录优盘armbian镜像:Armbian_24.8.0_amlogic_s905lb-r3300l_jammy_6.1.100_server_2024.07.25.img

玩活之后,开心电视助手链接电视ip,调试从优盘启动 一黑屏接着插优盘,插准时机哦😐!

然后就是这样那样还有这么样!
-Image_1723153297289.jpg

Image_1723153298794.jpg

跑码正常 hdmi显示正常
Image_1723153301061.jpg

一切正常
然后魔霸链接ssh

剩下的你们都是高手了,我不多说了,多说露馅,我只发图了。
Image_1723153499339.jpg

好好好 s905x p212版

Image_1723153469102.jpg

写入盒子吧,写完最后想明白了,不该写盒子里,这盒子才4g实际用起来也就3个g.不说了 最后看最后的图你就知道多吓人了 算了现在看吧!Image_1723147050604.jpg

吓人不?

嗐,接着写入吧!
Image_1723153473553.jpg

别蒙圈,咱们选130。
Image_1723153486879.jpg

成功!

。。。。此处省略一些,然后看图吧
Image_1723146167055.jpg
https://github.com/user-attachments/assets/8486a72d-1951-4cca-a421-cddc7282afc8

Image_1723146602833.jpg

Image_1723147001539.jpg

Image_1723147050604.jpg

。就这些吧,下面是下载用到东西的地址,一个地址包含所有。

o大如果可以给列表留存一份,谢谢。

在我alist资源站

https://jk9008.top/%E7%94%B5%E8%A7%86%E7%9B%92%E5%AD%90%E5%88%B7%E6%9C%BA%E5%9B%BA%E4%BB%B6/%E6%B5%AA%E6%BD%AEipbs9505%E5%88%B7armbian%E7%B3%BB%E5%88%97

大家复制粘贴到浏览器,去下载本帖相关内容吧。
不过最后一想,算了 内存太小 插个tf卡,当游戏机吧 哈哈。
IMG_20240809_065821.jpg

IMG_20240809_065857.jpg

IMG_20240809_065909.jpg

不是,哥们,,,看电视也行。嘿嘿😁

@ophub
Copy link
Owner

ophub commented Aug 9, 2024

多谢分享,我根据你的成果添加到支持的设备列表里,安卓系统我转发到这里留存一份: https://github.com/ophub/kernel/releases/tag/tools

方便有这款设备的朋友们照着你的方法使用。

@w2xg2022
Copy link

@ophub & all,

bookworm_6.6.46 无法驱动wifi,所以自己编译了驱动。

Armbian_24.8.0_amlogic_s905lb-r3300l_wifi_bookworm_6.6.46_server_2024.08.15.img.gz
无线驱动编译.txt

链接:https://pan.baidu.com/s/1BV4fOoP-h207zhIc1pkTpw
提取码:bcph

rufus-4.5.exe刷写U盘,U盘开机后:

连接无线路由器(照画面提示操作)

nmtui

查看IP状况

ifconfig

拔掉有线;测速,测得无线网速约25~30Mbps,有点鸡肋

speedtest

固件较O大原版更新:
1、替换软件源为mirrors.ustc.edu.cn;
2、usr/bin/添加speedtest测速、coremark跑分工具;
3、添加无线8189fs驱动。

遗留问题:
1、会莫名出现wlan1,已经在rc.local以ifconfig wlan1 down禁用,但iwconfig还是会出现wlan1,基本不影响使用;
2、本机终端会一直出现RTW相关信息,SSH的话不影响。

armbian下如何编译驱动可参考 无线驱动编译.txt,有具体操作步骤。

搜狗截图20240827131002

@ophub
Copy link
Owner

ophub commented Aug 27, 2024

感谢分享

@chxsamidare
Copy link

r3300l写入emmc后只能拔出所有tf卡,u盘才能启动,不然无法启动

@bird202301
Copy link

bird202301 commented Sep 17, 2024 via email

@cjd6568358
Copy link

cjd6568358 commented Oct 10, 2024

请教下,为什么新版本可用内存只剩下768M了?如何恢复到上面的920M?另外貌似现在的镜像都是Ubuntu了?原来的debian去哪了?无线好像也用不了了

@cjd6568358
Copy link

解决了,任意内核版本的镜像只要使用armbian-update -k 5.15.167 把内核降到5.15.167,然后使用
cd /boot cp -f u-boot-r3300l.bin u-boot.emmc sync reboot
就可以恢复920M可用内存了。前提是把系统写入到emmc里

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.